package cn.codinglives.demo.order.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class OrderService {
    private final static Logger logger = LoggerFactory.getLogger(OrderService.class);


    public String createOrder(String userId, String productId) {
        String orderId = System.currentTimeMillis() + "";
        logger.info("create order:{}", orderId);
        return orderId;
    }
}
